<div style="float: left;">
<div class="ui-corner-top side_menu" style="width: 700px;">Classes</div>
<div style="border:1px  solid #286bcc;">
	<div>&nbsp;</div>
	<div style="max-width:900px;">
	
		<?if(isset($system_message))echo $system_message;?>
	
	</div>
	<div style="max-width:900px;">
		<table class="data-table">
		<?if(!empty($schedule)):?>
			<thead class="tabular-head">
				<tr>
					<th>Subject Code</th>
					<th>Subject Description</th>
					<th>From</th>
					<th>To</th>
					<th>Days</th>
				</tr>
			</thead>
			<tbody class="tabular">
			<?foreach($schedule as $sched):?>
				<tr>
					<td><?=$sched->subj_code?></td>
					<td><?=$sched->subj_desc?></td>
					<td><?=$sched->time_from?></td>
					<td><?=$sched->time_to?></td>
					<td><?=$sched->day?></td>
					<td><a href="<? echo base_url() . 'teacher/view_class/' . $sched->subject_id . '?t_id=' . $sched->teacher_id; ?>" class="edt">View Students</a></td>
				</tr>
			<?endforeach;?>
			</tbody>
		<?else:?>
			<tr>
				<td>Error retrieving schedule.</td>
			</tr>
		<?endif;?>
		</table>
	</div>
	
	<div class="clearfloat"></div>
</div>
<div>&nbsp;</div>
</div>